package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    Page<NursingPlanVo> findNursingPlanPage(String name, Integer status);

    void addNursingPlan(NursingPlan nursingPlan);

    NursingPlanVo findNursingPlanById(Long id);

    void updateNursingPlan(NursingPlan nursingPlan);

    void deleteNursingPlan(Long id);

    void updateNursingPlanByStatus(Long id, Integer status);

    List<NursingPlanVo> findAllNursingPlan();

    NursingPlan getNursingPlanByProjectName(String planName);
}
